<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>
<?=$xinha_inclusion?>

<div class="wrap">
	<a><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Tulis -> Listing -> step2 </a></h3>
<?if(!(empty($mode))){echo"<div id='message' class='updated fade'><p>$pesan</p></div>";}?>
<div id="dashboard-widgets-wrap">
<form action="<?=site_url('administrator/proceed_listing')?>" method='POST' enctype="multipart/form-data">
<table width="90%" border="0">
<tr valign="top">
<td width="60%">

<div style="float:left">
<h3><label for="title">Kode</label></h3>
<input type="text" name="listing_kode" size="20">&nbsp;&nbsp;
</div>
	
<div style="float:left">
<h3><label for="title">Tipe Listing</label></h3>
<select name='listing_tipe_listing' tabindex='6' id='post_status' style="font-size:14px;width:100px">
<option selected="selected" value='jual'>Jual</option>
<option value='sewa'>Sewa</option>
</select>&nbsp;&nbsp;
</div>

<div style="float:left">
<h3><label for="title">Tipe Property</label></h3>
<input type="text" size="30" Value="<?=$tipe_property_field?>" disabled=disabled>&nbsp;&nbsp;
<input type="hidden" name="listing_tipe_property" size="30" Value="<?=$tipe_property_back?>" >
</div>

<div class="clear"></div>
<div>
<h3><label for="title">Harga</label></h3>
<input type="text" name="listing_harga" size="30" >&nbsp;&nbsp;
</div>
	
<div>
<h3><label for="title">Lokasi</label></h3>
<input type="text" name="listing_lokasi" size="30">&nbsp;&nbsp;
</div>

	
<div class="clear"></div>
<div style="float:left">
<h3><label for="title">Deskripsi</label></h3>
<textarea id="teks" cols="60" rows="2" name="listing_deskripsi" title="Summary dari Listing Contohnya 'DIJUAL : Kos-Kosan 2.5 Lantai, 17 Kamar Tidur di Kemanggisan'"></textarea>
</div>
	
<div class="clear"></div>
<div style="float:left">
<h3><label for="title">Note</label></h3>
<textarea id="teks" cols="60" rows="2" name="listing_note"></textarea>
</div>

<div style="float:left">
<h3><label for="title">Isi Detail Listing</label></h3>
<textarea id="teks" cols="84" rows="25" name="listing_detail"><?=$detail_template;?></textarea>
</div>
<td  style="float:right;background-color:#464646;" width="350px;">
<div class="submitbox" id="submitpage">

<div class="submit">
<strong><label for='post_status'>Marketing</label></strong><br>
<select name='listing_marketing' tabindex='6' id='post_status' style="width:90%;font-size:14px;">
<option selected="selected" value=''>--Pilih Marketing--</option>
<?
foreach($queryMarketing as $row){
echo "<option  value='".$row->nip."'>".ucwords($row->nama)."</option>";
}
?>
</select>
<br><br>
<strong><label for='post_status'>Tanggal</label></strong><br>
<input type="text" name="listing_tanggal" size="12" id="DateAgenda" value="<?echo date("Y-m-d");?>" readonly><input type="button" onClick="SelectDate('Date1')" value="Set"><br><br>

<hr>
<h3><label for="title">Upload Gambar Listing (Maximal 5 Gambar)</label></h3>
<input type="file" name="userfile[]" size="30" class="multi" />
<br /><br />

<input type='button' onclick="window.history.go(-1)" class="button-primary" value='Prev'>&nbsp;&nbsp;<input type='submit' class="button-primary"  name='submit' value='Proceed'>
</div>
</div>
</td>
</tr>

<tr>
<td>

</td>
</td>
<td></td>
</tr>
</table>
</form>
</div>
</div><!-- wrap -->
<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
